<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CodeCollab - 实时协作代码编辑器 | TechBlog</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            /* 亮色主题变量 */
            --bg-color: #ffffff;
            --text-color: #24292f;
            --border-color: #d0d7de;
            --card-bg: #f6f8fa;
            --header-bg: #f6f8fa;
            --accent-color: #0969da;
            --accent-hover: #0550ae;
            --code-bg: rgba(175, 184, 193, 0.2);
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
            --tag-bg: #ddf4ff;
            --tag-color: #0969da;
            --filter-bg: #f6f8fa;
            --input-bg: #ffffff;
            --completed-color: #28a745;
            --in-progress-color: #ffc107;
            --planned-color: #6c757d;
        }

        .dark-theme {
            /* 深色主题变量 */
            --bg-color: #0d1117;
            --text-color: #e6edf3;
            --border-color: #30363d;
            --card-bg: #161b22;
            --header-bg: #161b22;
            --accent-color: #2f81f7;
            --accent-hover: #1c6bdb;
            --code-bg: rgba(110, 118, 129, 0.4);
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.7);
            --tag-bg: #388bfd26;
            --tag-color: #58a6ff;
            --filter-bg: #161b22;
            --input-bg: #0d1117;
            --completed-color: #3fb950;
            --in-progress-color: #d29922;
            --planned-color: #8b949e;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s, color 0.3s, border-color 0.3s;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.5;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 头部导航 */
        header {
            background-color: var(--header-bg);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            font-size: 20px;
            color: var(--text-color);
            text-decoration: none;
            z-index: 101;
        }

        .logo i {
            color: var(--accent-color);
        }

        .nav-links {
            display: flex;
            gap: 24px;
        }

        .nav-links a {
            color: var(--text-color);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }

        .nav-links a.active {
            color: var(--accent-color);
            font-weight: 600;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .theme-toggle {
            background: none;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 8px 12px;
            color: var(--text-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .theme-toggle:hover {
            background-color: var(--code-bg);
        }

        .mobile-menu {
            display: none;
            background: none;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-color);
            cursor: pointer;
            padding: 8px 12px;
            font-size: 16px;
            transition: all 0.2s ease;
        }

        .mobile-menu:hover {
            background-color: var(--code-bg);
        }

        /* 主要内容区域 */
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 24px;
            padding: 32px 0;
        }

        /* 标题区域 */
        .section-header {
            margin-bottom: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .section-header h2 {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 0;
        }

        /* 内容容器 */
        .content-container {
            display: flex;
            gap: 32px;
            align-items: flex-start;
        }

        /* 项目详情区域 */
        .project-detail {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        /* 项目头部 */
        .project-header {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 32px;
            display: flex;
            gap: 24px;
            align-items: flex-start;
        }

        .project-image {
            width: 200px;
            height: 150px;
            border-radius: 6px;
            object-fit: cover;
            flex-shrink: 0;
            border: 1px solid var(--border-color);
        }

        .project-info {
            flex: 1;
        }

        .project-title {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .project-meta {
            display: flex;
            gap: 20px;
            margin-bottom: 16px;
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.8;
            flex-wrap: wrap;
        }

        .project-status {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 500;
        }

        .status-completed {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--completed-color);
        }

        .project-tags {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .tag {
            background-color: var(--tag-bg);
            color: var(--tag-color);
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .project-links {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 16px;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background-color: var(--accent-color);
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .project-link:hover {
            background-color: var(--accent-hover);
            transform: translateY(-1px);
        }

        .project-link.secondary {
            background-color: var(--code-bg);
            color: var(--text-color);
        }

        .project-link.secondary:hover {
            background-color: var(--border-color);
        }

        /* 项目描述卡片 */
        .description-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 24px;
        }

        .description-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
        }

        .description-content {
            line-height: 1.6;
        }

        .description-content p {
            margin-bottom: 16px;
        }

        .description-content ul {
            margin-bottom: 16px;
            padding-left: 24px;
        }

        .description-content li {
            margin-bottom: 8px;
        }

        /* 功能特性卡片 */
        .features-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 24px;
        }

        .features-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 16px;
        }

        .feature-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .feature-icon {
            color: var(--accent-color);
            font-size: 18px;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .feature-content h4 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .feature-content p {
            font-size: 14px;
            opacity: 0.8;
            line-height: 1.5;
        }

        /* 技术栈卡片 */
        .tech-stack-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 24px;
        }

        .tech-stack-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
        }

        .tech-category {
            margin-bottom: 24px;
        }

        .tech-category h4 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--accent-color);
        }

        .tech-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        /* 项目截图卡片 */
        .screenshots-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 24px;
        }

        .screenshots-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
        }

        .screenshots-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 16px;
        }

        .screenshot-item {
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .screenshot-item:hover {
            transform: translateY(-2px);
        }

        .screenshot-item img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* 侧边栏 */
        .sidebar {
            width: 300px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        /* 侧边栏区块 */
        .sidebar-section {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 16px;
        }

        .sidebar-section h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-color);
        }

        .about-me {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin-bottom: 12px;
            border: 2px solid var(--border-color);
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 12px;
        }

        .social-links a {
            color: var(--text-color);
            font-size: 18px;
            transition: color 0.2s ease;
        }

        .social-links a:hover {
            color: var(--accent-color);
        }

        .stats-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .stat-item:last-child {
            border-bottom: none;
        }

        .stat-label {
            font-size: 14px;
            opacity: 0.8;
        }

        .stat-value {
            font-size: 14px;
            font-weight: 600;
        }

        .categories-list,
        .tags-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .categories-list a,
        .tags-list a {
            background-color: var(--code-bg);
            color: var(--text-color);
            padding: 4px 8px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 12px;
            transition: all 0.2s ease;
        }

        .categories-list a:hover,
        .tags-list a:hover {
            background-color: var(--accent-color);
            color: white;
        }

        /* 页脚 */
        footer {
            border-top: 1px solid var(--border-color);
            padding: 32px 0;
            text-align: center;
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.8;
        }

        /* 响应式设计优化 */
        @media (max-width: 1024px) {
            .content-container {
                gap: 24px;
            }

            .sidebar {
                width: 250px;
            }
        }

        @media (max-width: 900px) {
            .content-container {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                order: -1;
                margin-bottom: 0;
            }

            .sidebar-section {
                padding: 20px;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 16px;
            }

            .navbar {
                padding: 12px 0;
            }

            .logo {
                font-size: 18px;
            }

            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--header-bg);
                border-top: 1px solid var(--border-color);
                flex-direction: column;
                padding: 16px 20px;
                display: none;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links a {
                padding: 12px 0;
                border-bottom: 1px solid var(--border-color);
                font-size: 16px;
            }

            .nav-links a:last-child {
                border-bottom: none;
            }

            .mobile-menu {
                display: block;
                min-height: 44px;
                min-width: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .theme-toggle,
            .mobile-menu {
                padding: 10px 14px;
            }

            .main-content {
                padding: 24px 0;
                gap: 20px;
            }

            .content-container {
                gap: 20px;
            }

            .section-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .section-header h2 {
                font-size: 20px;
            }

            .project-header {
                flex-direction: column;
                text-align: center;
                padding: 24px;
            }

            .project-image {
                align-self: center;
                width: 100%;
                max-width: 300px;
                height: auto;
            }

            .project-meta {
                justify-content: center;
            }

            .project-links {
                justify-content: center;
            }

            .description-card,
            .features-card,
            .tech-stack-card,
            .screenshots-card {
                padding: 20px;
            }

            .features-grid {
                grid-template-columns: 1fr;
            }

            .screenshots-grid {
                grid-template-columns: 1fr;
            }

            .sidebar-section {
                padding: 16px;
            }

            .avatar {
                width: 60px;
                height: 60px;
            }

            /* 减少移动端的动画效果 */
            * {
                transition: none;
            }

            /* 保留必要的过渡 */
            .theme-toggle,
            .mobile-menu,
            .nav-links a,
            .project-link {
                transition: all 0.2s ease;
            }
        }

        @media (max-width: 480px) {
            .project-meta {
                flex-direction: column;
                gap: 8px;
            }

            .project-links {
                flex-direction: column;
                align-items: center;
            }

            .project-link {
                width: 100%;
                justify-content: center;
            }

            .container {
                padding: 0 12px;
            }

            .content-container {
                gap: 16px;
            }
        }

        @media (max-height: 500px) and (orientation: landscape) {
            .navbar {
                padding: 8px 0;
            }

            .main-content {
                padding: 16px 0;
            }
        }
    </style>
</head>

<body class="light-theme">
    <header>
        <div class="container">
            <nav class="navbar">
                <a href="index.html" class="logo">
                    <i class="fas fa-code"></i>
                    TechBlog
                </a>

                <div class="nav-links">
                    <a href="index.html">首页</a>
                    <a href="article-list.html">文章</a>
                    <a href="tutorial-list.html">教程</a>
                    <a href="projects.html">项目</a>
                    <a href="about.html">关于</a>
                </div>

                <div class="nav-actions">
                    <button class="theme-toggle" id="themeToggle">
                        <i class="fas fa-moon"></i>
                        <span>深色模式</span>
                    </button>
                    <button class="mobile-menu" id="mobileMenu">
                        <i class="fas fa-bars"></i>
                    </button>
                </div>
            </nav>
        </div>
    </header>

    <div class="container">
        <div class="main-content">
            <!-- 标题区域 -->
            <div class="section-header">
                <h2>项目详情</h2>
            </div>

            <!-- 侧边栏和项目详情放在同一个flex容器中 -->
            <div class="content-container">
                <main class="project-detail">
                    <!-- 项目头部 -->
                    <section class="project-header">
                        <img src="https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80"
                            alt="CodeCollab项目截图" class="project-image">
                        <div class="project-info">
                            <h1 class="project-title">CodeCollab - 实时协作代码编辑器</h1>
                            <div class="project-meta">
                                <span><i class="far fa-calendar"></i> 2023-10-25</span>
                                <span><i class="far fa-star"></i> 42 星标</span>
                                <span><i class="far fa-eye"></i> 1.2k 浏览</span>
                                <span class="project-status status-completed"><i class="fas fa-check-circle"></i>
                                    已完成</span>
                            </div>
                            <div class="project-tags">
                                <span class="tag">React</span>
                                <span class="tag">Node.js</span>
                                <span class="tag">MongoDB</span>
                                <span class="tag">Socket.io</span>
                                <span class="tag">实时协作</span>
                                <span class="tag">Web开发</span>
                            </div>
                            <p>一个基于Web的实时协作代码编辑器，支持多人同时编辑、语法高亮和实时聊天功能。使用Operational Transformations解决冲突问题。</p>
                            <div class="project-links">
                                <a href="#" class="project-link">
                                    <i class="fab fa-github"></i> 查看源码
                                </a>
                                <a href="#" class="project-link secondary">
                                    <i class="fas fa-external-link-alt"></i> 在线演示
                                </a>
                                <a href="#" class="project-link secondary">
                                    <i class="fas fa-download"></i> 下载项目
                                </a>
                            </div>
                        </div>
                    </section>

                    <!-- 项目描述 -->
                    <section class="description-card">
                        <h3>项目描述</h3>
                        <div class="description-content">
                            <p>CodeCollab是一个现代化的实时协作代码编辑器，旨在为开发团队提供高效的协作编程环境。它允许多个用户同时编辑同一份代码，并实时看到彼此的更改。</p>
                            <p>该项目解决了远程团队协作编程的痛点，提供了类似Google Docs的实时协作体验，但专门为代码编辑优化。</p>
                            <p><strong>主要特点：</strong></p>
                            <ul>
                                <li>实时多人协作编辑</li>
                                <li>语法高亮支持多种编程语言</li>
                                <li>实时聊天和代码评论功能</li>
                                <li>版本历史和更改追踪</li>
                                <li>冲突解决机制</li>
                                <li>代码自动完成和提示</li>
                            </ul>
                        </div>
                    </section>

                    <!-- 功能特性 -->
                    <section class="features-card">
                        <h3>功能特性</h3>
                        <div class="features-grid">
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-users"></i>
                                </div>
                                <div class="feature-content">
                                    <h4>实时协作</h4>
                                    <p>支持多人同时编辑，实时同步更改，光标位置和选择区域可见。</p>
                                </div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-code"></i>
                                </div>
                                <div class="feature-content">
                                    <h4>语法高亮</h4>
                                    <p>支持JavaScript、Python、Java等30+种编程语言的语法高亮。</p>
                                </div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-comments"></i>
                                </div>
                                <div class="feature-content">
                                    <h4>实时聊天</h4>
                                    <p>内置聊天功能，方便团队成员讨论代码和协作事宜。</p>
                                </div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-history"></i>
                                </div>
                                <div class="feature-content">
                                    <h4>版本历史</h4>
                                    <p>自动保存编辑历史，可以回溯到任意时间点的代码状态。</p>
                                </div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-shield-alt"></i>
                                </div>
                                <div class="feature-content">
                                    <h4>冲突解决</h4>
                                    <p>使用Operational Transformations算法智能解决编辑冲突。</p>
                                </div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-mobile-alt"></i>
                                </div>
                                <div class="feature-content">
                                    <h4>响应式设计</h4>
                                    <p>完美适配桌面、平板和手机等各种设备屏幕。</p>
                                </div>
                            </div>
                        </div>
                    </section>

                    <!-- 技术栈 -->
                    <section class="tech-stack-card">
                        <h3>技术栈</h3>
                        <div class="tech-category">
                            <h4>前端技术</h4>
                            <div class="tech-tags">
                                <span class="tag">React 18</span>
                                <span class="tag">TypeScript</span>
                                <span class="tag">Monaco Editor</span>
                                <span class="tag">Socket.io Client</span>
                                <span class="tag">Tailwind CSS</span>
                            </div>
                        </div>
                        <div class="tech-category">
                            <h4>后端技术</h4>
                            <div class="tech-tags">
                                <span class="tag">Node.js</span>
                                <span class="tag">Express.js</span>
                                <span class="tag">Socket.io</span>
                                <span class="tag">MongoDB</span>
                                <span class="tag">JWT认证</span>
                            </div>
                        </div>
                        <div class="tech-category">
                            <h4>部署与工具</h4>
                            <div class="tech-tags">
                                <span class="tag">Docker</span>
                                <span class="tag">AWS EC2</span>
                                <span class="tag">GitHub Actions</span>
                                <span class="tag">ESLint</span>
                                <span class="tag">Prettier</span>
                            </div>
                        </div>
                    </section>

                    <!-- 项目截图 -->
                    <section class="screenshots-card">
                        <h3>项目截图</h3>
                        <div class="screenshots-grid">
                            <div class="screenshot-item">
                                <img src="https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80"
                                    alt="编辑器界面">
                            </div>
                            <div class="screenshot-item">
                                <img src="https://images.unsplash.com/photo-1627398242454-45a1465c2479?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1074&q=80"
                                    alt="协作功能">
                            </div>
                            <div class="screenshot-item">
                                <img src="https://images.unsplash.com/photo-1627398242454-45a1465c2479?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1074&q=80"
                                    alt="聊天功能">
                            </div>
                        </div>
                    </section>
                </main>

                <aside class="sidebar">
                    <div class="sidebar-section about-me">
                        <img src="https://avatars.githubusercontent.com/u/583231?v=4" alt="Avatar" class="avatar">
                        <h3>关于作者</h3>
                        <p>全栈开发者，专注于现代Web技术。热爱开源，喜欢分享技术知识。</p>
                        <div class="social-links">
                            <a href="#"><i class="fab fa-github"></i></a>
                            <a href="#"><i class="fab fa-twitter"></i></a>
                            <a href="#"><i class="fab fa-linkedin"></i></a>
                            <a href="#"><i class="fas fa-envelope"></i></a>
                        </div>
                    </div>

                    <div class="sidebar-section">
                        <h3>项目统计</h3>
                        <div class="stats-list">
                            <div class="stat-item">
                                <span class="stat-label">创建日期</span>
                                <span class="stat-value">2023-08-15</span>
                            </div>
                            <div class="stat-item">
                                <span class="stat-label">最后更新</span>
                                <span class="stat-value">2023-10-25</span>
                            </div>
                            <div class="stat-item">
                                <span class="stat-label">版本</span>
                                <span class="stat-value">v1.2.0</span>
                            </div>
                            <div class="stat-item">
                                <span class="stat-label">许可证</span>
                                <span class="stat-value">MIT</span>
                            </div>
                            <div class="stat-item">
                                <span class="stat-label">开发周期</span>
                                <span class="stat-value">3个月</span>
                            </div>
                        </div>
                    </div>

                    <div class="sidebar-section">
                        <h3>相关项目</h3>
                        <div class="categories-list">
                            <a href="#">DataViz</a>
                            <a href="#">TaskFlow</a>
                            <a href="#">DevUtils</a>
                            <a href="#">FitTrack</a>
                        </div>
                    </div>

                    <div class="sidebar-section">
                        <h3>技术标签</h3>
                        <div class="tags-list">
                            <a href="#">React</a>
                            <a href="#">Node.js</a>
                            <a href="#">TypeScript</a>
                            <a href="#">MongoDB</a>
                            <a href="#">Socket.io</a>
                            <a href="#">实时协作</a>
                        </div>
                    </div>

                    <div class="sidebar-section">
                        <h3>分享项目</h3>
                        <div class="social-links">
                            <a href="#"><i class="fab fa-twitter"></i></a>
                            <a href="#"><i class="fab fa-linkedin"></i></a>
                            <a href="#"><i class="fab fa-facebook"></i></a>
                            <a href="#"><i class="fas fa-link"></i></a>
                        </div>
                    </div>
                </aside>
            </div>
        </div>
    </div>

    <footer>
        <div class="container">
            <p>© 2023 TechBlog. 保留所有权利。</p>
            <p>采用 Github 风格设计 | 由开发者为开发者打造</p>
        </div>
    </footer>

    <script>
        // 主题切换功能
        const themeToggle = document.getElementById('themeToggle');
        const themeIcon = themeToggle.querySelector('i');
        const themeText = themeToggle.querySelector('span');

        // 检查本地存储的主题偏好
        const currentTheme = localStorage.getItem('theme') || 'light';
        if (currentTheme === 'dark') {
            document.body.classList.add('dark-theme');
            themeIcon.classList.remove('fa-moon');
            themeIcon.classList.add('fa-sun');
            themeText.textContent = '浅色模式';
        }

        themeToggle.addEventListener('click', () => {
            document.body.classList.toggle('dark-theme');

            if (document.body.classList.contains('dark-theme')) {
                themeIcon.classList.remove('fa-moon');
                themeIcon.classList.add('fa-sun');
                themeText.textContent = '浅色模式';
                localStorage.setItem('theme', 'dark');
            } else {
                themeIcon.classList.remove('fa-sun');
                themeIcon.classList.add('fa-moon');
                themeText.textContent = '深色模式';
                localStorage.setItem('theme', 'light');
            }
        });

        // 移动端菜单切换
        const mobileMenu = document.getElementById('mobileMenu');
        const navLinks = document.querySelector('.nav-links');
        const menuIcon = mobileMenu.querySelector('i');

        mobileMenu.addEventListener('click', () => {
            navLinks.classList.toggle('active');

            if (navLinks.classList.contains('active')) {
                menuIcon.classList.remove('fa-bars');
                menuIcon.classList.add('fa-times');
            } else {
                menuIcon.classList.remove('fa-times');
                menuIcon.classList.add('fa-bars');
            }
        });

        // 点击菜单外区域关闭菜单
        document.addEventListener('click', (e) => {
            if (!e.target.closest('.navbar') && navLinks.classList.contains('active')) {
                navLinks.classList.remove('active');
                menuIcon.classList.remove('fa-times');
                menuIcon.classList.add('fa-bars');
            }
        });

        // 窗口大小变化时调整菜单状态
        window.addEventListener('resize', () => {
            if (window.innerWidth > 768) {
                navLinks.classList.remove('active');
                menuIcon.classList.remove('fa-times');
                menuIcon.classList.add('fa-bars');
            }
        });

        // 项目截图点击放大功能
        document.addEventListener('DOMContentLoaded', function () {
            const screenshotItems = document.querySelectorAll('.screenshot-item');

            screenshotItems.forEach(item => {
                item.addEventListener('click', function () {
                    const imgSrc = this.querySelector('img').src;

                    // 创建模态框
                    const modal = document.createElement('div');
                    modal.style.position = 'fixed';
                    modal.style.top = '0';
                    modal.style.left = '0';
                    modal.style.width = '100%';
                    modal.style.height = '100%';
                    modal.style.backgroundColor = 'rgba(0, 0, 0, 0.8)';
                    modal.style.display = 'flex';
                    modal.style.justifyContent = 'center';
                    modal.style.alignItems = 'center';
                    modal.style.zIndex = '1000';
                    modal.style.cursor = 'zoom-out';

                    // 创建图片元素
                    const modalImg = document.createElement('img');
                    modalImg.src = imgSrc;
                    modalImg.style.maxWidth = '90%';
                    modalImg.style.maxHeight = '90%';
                    modalImg.style.objectFit = 'contain';
                    modalImg.style.borderRadius = '8px';

                    modal.appendChild(modalImg);
                    document.body.appendChild(modal);

                    // 点击关闭模态框
                    modal.addEventListener('click', function () {
                        document.body.removeChild(modal);
                    });
                });
            });
        });
    </script>
</body>

</html>